
 jQuery(document).ready(function() {
 var jbgzFieldid = WfForm.convertFieldNameToId("jbgz");


 WfForm.bindFieldChangeEvent(jbgzFieldid,
    function(obj, id, value) {
  if(value*1<0){
  alert("基本工资不允许为负值");
  //置空文本框
  WfForm.changeFieldValue(jbgzFieldid, {
                                value: ""
                            });
  }

    });
var jxgzFieldid = WfForm.convertFieldNameToId("jxgz");

 WfForm.bindFieldChangeEvent(jxgzFieldid,
    function(obj, id, value) {

  if(value*1<0){
  alert("绩效工资不允许为负值");
  //置空文本框
  WfForm.changeFieldValue(jxgzFieldid, {
                                value: ""
                            });
  }

    });
var nzjjjsFieldid = WfForm.convertFieldNameToId("nzjjjs");

 WfForm.bindFieldChangeEvent(nzjjjsFieldid,
    function(obj, id, value) {

  if(value*1<0){
  alert("年终奖金基数不允许为负值");
  //置空文本框
  WfForm.changeFieldValue(nzjjjsFieldid, {
                                value: ""
                            });
  }

    });
var sbjsFieldid = WfForm.convertFieldNameToId("sbjs");

 WfForm.bindFieldChangeEvent(sbjsFieldid,
    function(obj, id, value) {

  if(value*1<0){
  alert("社保基数不允许为负值");
  //置空文本框
  WfForm.changeFieldValue(sbjsFieldid, {
                                value: ""
                            });
  }

    });
var gjjjsFieldid = WfForm.convertFieldNameToId("gjjjs");

 WfForm.bindFieldChangeEvent(gjjjsFieldid,
    function(obj, id, value) {

  if(value*1<0){
  alert("公积金基数不允许为负值");
  //置空文本框
  WfForm.changeFieldValue(gjjjsFieldid, {
                                value: ""
                            });
  }

    });

})















